<?php


namespace app\miniapp\validate;


use think\Validate;

class MemberValidate extends Validate
{
    protected $rule = [
        'image' => 'require',
        'name' => 'require',
        'mobile' => 'require',

    ];
    protected $message = [
        'image.require' => '头像不能为空',
        'name.require' => '昵称不能为空',
        'mobile.require' => '手机号不能为空',

    ];
    protected $scene = [

        'edit' => ['name','mobile','image'],
    ];
}